<#if errorMsg?exists&&errorMsg=="Y"> 
<script type="text/javascript">
<!--
$.alert({
	status : 'error',
	title:"温馨提示",
	width:500,
	basicTitle : '尊敬的客户，您尚未设置您的银行账户！', 
	buttons : [{'flag' : 'ok' , 'name' : '马上设置' , 'handler' : function(){
		$.none_alert();
		location.href=window.frontPath+"home#/user/banklist";
		}
	},{'flag' : 'cancel' , 'name' : '关闭' , 'handler' : function (){
		 $.none_alert(); 
		 location.href=window.frontPath+"home#/home";
	}}]
});
//-->
</script>
<#else>
<link rel="stylesheet" href="${basePath}static/css/user.css">
<script src="${basePath}static/js/cash.js"></script>
<form id="tocash_form" name="bank_form" action="#" method="POST">
<table width="100%" class="tab-accuont mt10">
	<tr>
		<th colspan="4" class="tl fz14"><b>提现</b></th>
	</tr>
	<tr>
		<td class="tr" width="150"><b style="color:#FF0000;">提示信息：</b></td>
		<td>
			<p>您是尊贵的客户，每天限提&nbsp;&nbsp;<strong style="font-size:16px;color:red;">3</strong>&nbsp;&nbsp;次,
			今天您已经成功发起了&nbsp;&nbsp;<strong style="font-size:16px;color:green">${todayTocashCount!}</strong>&nbsp;&nbsp;次提现申请</p>
	        <p>每天的提现处理时间为：<strong style="font-size:16px;color:red;">早上 10:00 至 凌晨 02:00</strong></p>
	        <p>提现10分钟内到账。(如遇高峰期，可能需要延迟到三十分钟内到帐)</p>
	        <p style="color:blue;">银行卡用户每日最小提现&nbsp;&nbsp; 
    		<strong style="color:green;font-size:16px;">${cashLower!}</strong>&nbsp;&nbsp;元，最大提提现&nbsp;&nbsp; 
    		<strong style="color:green;font-size:16px;">${cashUpper!}</strong>&nbsp;&nbsp;元。财付通/支付宝用户,最小提现
    		&nbsp;&nbsp;<strong style="color:green;font-size:16px;">${cashLower!}</strong>&nbsp;&nbsp;元，
    		最大提现&nbsp;&nbsp;<strong style="color:green;font-size:16px;">${cashUpper!}</strong>&nbsp;&nbsp;元。
			</p>
		</td>
	</tr>
	<tr>
		<td class="tr" width="150">今日消费：</td>
		<td >今日投注：&nbsp;&nbsp;${bets_amount!} &nbsp;&nbsp;
		           今天充值：&nbsp;&nbsp;${charge_amount!} &nbsp;&nbsp;
	     	您今日消费比例已达到：&nbsp;<strong style="color:red" id="bili">
	     	 <#if charge_amount!=0>${bets_amount*100/charge_amount }<#else>100</#if>&nbsp;%</strong>&nbsp;&nbsp;</td>
	</tr>
	<tr>
		<td class="tr" width="150">消费比例说明：</td>
		<td>
			<p>计算公式：今日消费比例=今日投注量/今日充值额</p>
		    <p>(消费比例未达到系统设置的&nbsp;&nbsp;<strong style="color:red" id="sysbili">30</strong>&nbsp;&nbsp;%，则不能提款.)</p>
		    <p><strong style="color:red">如果今日未充值，则消费比例自动为100%，即使未投注也可随时提款。</strong></p>
		    <p>系统是从当天凌晨0点至第二天凌晨0点算一天。</p>
        </td>	
	</tr>
	<tr>
		<td class="tr"><b>选择银行：</b></td>
		<td>
				<#list bankList as bank>
					<table class="bankchoice">
						<tr>
							<td><input 
							    type="radio" 
							    class='bank-radio' name="bank_id" value="${bank.bankId}" style="width:auto"
								bank_account="${bank.account!}"
							 	uname="${bank.uname!}"
							 	openingName="${bank.openingName!}"
							 	bankName="${bank.bankName!}"
								/></td>
							<td><span style="background:url(${basePath}static/img/bank-icons/${bank.logo});"></span></td> 
						</tr>
					</table>
				</#list> 
		</td>
	</tr>
    <tr>
		<td class="tr"><b>开户行信息：</b></td>
		<td><input type="text" id="openingName" name="openingName" class="int" readonly></td>
	</tr>
	<tr>
		<td class="tr"><b>银行账号：</b></td>
		<td><input type="text" id="bank_account" name="bank_account" class="int" readonly></td>
	</tr>
	<tr>
		<td class="tr"><b>账户名：</b></td>
		<td><input type="text" id="uname" name="uname" class="int" readonly></td>
	</tr>
	<tr>
		<td class="tr"><b>提款金额：</b></td>
		<td><input type="text" 
		         id="cashAmount" 
		         name="cashAmount" class="int" 
		         min="${cashLower!}" max="${cashUpper!}" onkeyup="showPaymentFee();"
		         data-placeholder="请输入提款金额">
			<div class="spn12" style="display:inline;">( 单笔提现限额：最低：&nbsp;<strong style="color:red">${cashLower!}</strong>&nbsp;元，
			   最高：&nbsp;<strong style="color:red">${cashUpper!}</strong>&nbsp;元 )</div>
		</td>
	</tr>
	<tr>
		<td class="tr"><b>提款金额(大写)：</b></td>
		<td><strong style="color:#FF0000;margin-left:10px" id="chineseMoney"></strong></td>
	</tr>
	<tr>
		<td class="tr"><b>资金密码：</b></td>
		<td><input type="password" name="cashPassword" class="int"  /></td>
	</tr>
	<tr>
		<td class="tr"><b>&nbsp;</b></td>
		<td>
			<input type="submit" class="btn-b btn-lg" id="recharge_step1" value="下一步" />
		</td>
	</tr>
</table>
</form>
</#if>
